"use strict";
cc._RFpush(module, '2ea05L8IqZE4I2eYj9Mm/tF', 'FrictionJoint');
// Box2D\Scripts\Joint\FrictionJoint.js

window.FrictionJoint = cc.Class({

    "extends": Joint,

    properties: {
        maxForce: {
            "default": 0
        },
        maxTorque: {
            "default": 0
        }
    },

    // use this for initialization
    start: function start() {
        this.initJoint();

        var jointDef = new b2FrictionJointDef();
        jointDef.bodyA = this.localBody;
        jointDef.bodyB = this.targetBody;
        jointDef.localAnchorA = this.localAnchor;
        jointDef.localAnchorB = this.targetAnchor;
        jointDef.collideConnected = this.enableCollision;
        jointDef.maxTorque = this.maxTorque;
        jointDef.maxForce = this.maxForce;

        this.joint = Engine.instance.world.CreateJoint(jointDef);
    }
});

cc._RFpop();